<div class="container-fluid" style="margin-right: -15px;margin-left: -15px" xmlns:th="http://www.w3.org/1999/xhtml">
    <div class="row top font-small">
        <div class="col-md-2 col-sm-2"></div>
        <div class="col-md-8 col-sm-8">
            <script>
                window.onload=function () {
                        $("#hidden").val(location.pathname)
                }

                function goCampus(value){
                    location.href = "/campus/change/"+value;
                }
            </script>
            <select onchange="goCampus(value)" id="select_campus" style="width: 166px;height: 18px;-webkit-border-radius: 5px;-moz-border-radius: 5px;border-radius: 5px;opacity: 0.8;" >
                <th:block th:each="one:${campuses}">
                    <th:block th:if="${campusId} eq ${one.id}">
                        <option th:value="${one.id}" th:text="${one.name}" selected="selected"></option>
                    </th:block>
                    <th:block th:if="${campusId} neq ${one.id}">
                        <option th:value="${one.id}" th:text="${one.name}"></option>
                    </th:block>
                </th:block>
            </select>



            <div class="float-right">
                <span th:if="${session.userBase}==null">
                    <a href="javascript:;" class="theme-logIn">登录</a>
                    <a href="" th:href="@{/register}">注册</a>
                </span>
                <span th:if="${session.userBase}!=null">
                    <span th:if="${session.userBase.role} == 'buyer'"><a href="javascript:;" th:href="@{/buyer/center}">买家个人中心</a></span>
                    <span th:if="${session.userBase.role} == 'seller'"><a href="javascript:;" th:href="@{/seller/center}">卖家个人中心</a></span>
                    <span th:if="${session.userBase.role} == 'campusAdmin'"><a href="javascript:;" th:href="@{/campusadmin/}">管理员个人中心</a></span>
                    <span th:if="${session.userBase.role} == 'superAdmin'"><a href="javascript:;" th:href="@{/superadmin/}">超级管理员个人中心</a></span>
                    <a href="" th:href="@{/logout}">注销</a>
                </span>
            </div>
            <div class="theme-popover">
                <div class="theme-popTit">
                    <a href="javascript:;" title="关闭" class="close">×</a>
                    <h4>登录DaMi，享受更多优惠</h4>
                </div>
                <div class="theme-popBod dForm">
                    <form class="theme-signIn"  role = "form" name="loginForm" action="" th:action="@{/login}" method="post">
                        <ol class="form-group">
                            <li><label>用户名：</label><input class="ipt" type="text" name="name"  size="20" /></li>
                            <li style="padding-left: 78px"><label>密&nbsp;&nbsp;&nbsp;&nbsp;码：</label><input class="ipt" type="password" name="password"  size="20" /></li>
                            <li><label>买&nbsp;&nbsp;家</label>&nbsp;&nbsp;<input type="radio" name="userType" value="buyer" checked="checked"  />
                                <label style="padding-left: 50px">卖&nbsp;&nbsp;家</label>&nbsp;&nbsp;<input type="radio" name="userType" value="seller"  /></li>
                            <li><input type="hidden" id="hidden" name="hiddenUrl"></li>
                            <li><input class="btn btn-primary" type="submit"  value=" 登 录 "/>
                                <a href="#" th:href="@{/register}" style="padding-left: 50px">没有账号? 请注册</a></li>
                            <li></li>
                        </ol>
                    </form>
                </div>
            </div>
            <div class="theme-popover-mask"></div>
        </div>
        <div class="col-md-2 col-sm-2">
        </div>
    </div>
</div>